package org.acooly.secretbox.service.domain;

import java.util.Date;

public class User {

	private String id;
	private Date createTime = new Date();
	private String password;
	private String question;
	private String answer;
	private String deviceInfo;

	public User() {
		super();
	}

	public User(String password, String question, String answer, String deviceInfo) {
		super();
		this.password = password;
		this.question = question;
		this.answer = answer;
		this.deviceInfo = deviceInfo;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getDeviceInfo() {
		return deviceInfo;
	}

	public void setDeviceInfo(String deviceInfo) {
		this.deviceInfo = deviceInfo;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", createTime=" + createTime + ", password=" + password + ", question=" + question + ", answer=" + answer + ", deviceInfo="
				+ deviceInfo + "]";
	}

}
